package com.cooper.core;

import com.cooper.entity.Keygen;

/**
 * 
 * @Description: <br>
 * @Date: Jan 5, 2014 12:10:45 PM<br>
 * @Copyright (c) 2014 MiXuan <br> * 
 * @since 1.0
 * @author coraldane
 */
public class KeygenCache {
	
	private String keyName;
	private long minValue = Keygen.DEFAULT_MIN_VALUE;
	private long maxValue = Keygen.DEFAULT_MAX_VALUE;
	private long nextValue;
	public String getKeyName() {
		return keyName;
	}
	public void setKeyName(String keyName) {
		this.keyName = keyName;
	}
	
	public long getMinValue() {
		return minValue;
	}
	public void setMinValue(long minValue) {
		this.minValue = minValue;
	}
	public long getMaxValue() {
		return maxValue;
	}
	public void setMaxValue(long maxValue) {
		this.maxValue = maxValue;
	}
	public long getNextValue() {
		return nextValue;
	}
	public void setNextValue(long nextValue) {
		this.nextValue = nextValue;
	}
	public void increase(){
		this.nextValue ++;
	}
}